#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Author: CoderXYX
# @Email : xue752834620@126.com
# @Date  : 2019/5/9
# @Software: PyCharm

import hashlib

# 输入密码
password = input("请输入密码:")
md5 = hashlib.md5(bytes('加一些东西', encoding='utf-8') + b'')
md5.update(bytes(password, encoding='utf-8'))
print(md5.hexdigest())

# 确认密码
password = input("请输入密码:")
md5 = hashlib.md5(bytes('加一些东西', encoding='utf-8') + b'')
md5.update(bytes(password, encoding='utf-8'))
print(md5.hexdigest())
